// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import Character from "../../BASE/Character";
import GeZiManager from "../../Manager/GeZiManager";
import MessageCenter from "../../Message/MessageCenter";
import { SHMessage } from "../../Message/SHMessage";
import DXX from "./DXX";




const {ccclass, property} = cc._decorator;

@ccclass
export default class D03 extends DXX {

    target:Character=null;
    TheNumber:string = 'D03';
    Cname:string="怯战蜥蜴"
  
    start () {
        this.target=this.node.getComponent(Character);
        this.target.behurt2.push(this)
 
    }
Behurt2(m: SHMessage, BeHC: any, HC: any): void {
    MessageCenter.MakeSHMessage("AM",this.target.getNIGno5(this.target.ZB),1,this.target.Pturn,"Qi-")
}
remove(){
    GeZiManager.shanchu(this.target.behurt2,this)
}
}
